<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include.inc.jsp"%>
<div class="tabsContent">
    <div class="panel" defH="40">
        <h1>添加菜单</h1>
        <div>
            <div>

                <ul class="rightTools">
                    <li><a class="button" href="/admin/getSystemCfg!addresources" target="dialog"   callback="dialogAjax" fresh="true"><span>添加</span></a></li>
                </ul>
            </div>

        </div>
    </div>
    <div class="divider"></div>
    <div>

        <div layoutH="146" style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:21px; background:#fff">
            <ul class="tree treeFolder">
               <%-- <li><a href="javascript">实验室检测</a>
                    <ul>
                        <li><a href="/admin/getSystemCfg!getMenuInfo?resources.id=1" target="ajax" rel="jbsxBox">尿检</a></li>
                        <li><a href="/systemcfg/addSystemCfg.jsp" target="ajax" rel="jbsxBox">HIV检测</a></li>
                        <li><a href="/systemcfg/addSystemCfg.jsp" target="ajax" rel="jbsxBox">HCV检测</a></li>
                        <li><a href="/systemcfg/addSystemCfg.jsp" target="ajax" rel="jbsxBox">TB检测</a></li>
                    </ul>
                </li>--%>


                <c:forEach items="${list}" var="res">
                    <c:if test="${res.parentId==0}">
                        <li><a href="#">${res.resName}</a>
                            <ul>
                                <c:forEach items="${list}" var="ress">
                                    <c:if test="${ress.parentId==res.id}">
                                        <li><a href="/admin/getSystemCfg!getMenuInfo?resources.id=${ress.id}" target="ajax" rel="jbsxBox">${ress.resName}</a></li>
                                    </c:if>
                                </c:forEach>
                            </ul>
                        </li>
                    </c:if>
                </c:forEach>

            </ul>
        </div>

        <div id="jbsxBox" class="unitBox" style="margin-left:246px;">
            <!--#include virtual="list1.html" -->
        </div>

    </div>

</div>
<div class="tabsFooter">
    <div class="tabsFooterContent"></div>
</div>